/*
========================================================================
 Name        : ExportContactsSelectDirContainerView.h
 Author      : etouch.cc
 Copyright   : etouch.cc,All Right Reserved!
 Description : 
========================================================================
*/
#ifndef EXPORTCONTACTSSELECTDIRCONTAINERVIEW_H
#define EXPORTCONTACTSSELECTDIRCONTAINERVIEW_H
 
#include <aknview.h>

class CExportContactsSelectDirContainer;
class ContactEngine;			
			
class CExportContactsSelectDirContainerView : public CAknView
{	 
public:	 
	CExportContactsSelectDirContainerView();
	static CExportContactsSelectDirContainerView* NewL();
	static CExportContactsSelectDirContainerView* NewLC();        
	void ConstructL();
	virtual ~CExportContactsSelectDirContainerView();
	
public:					
	// from base class CAknView
	TUid Id() const;
	void HandleCommandL( TInt aCommand );	 
 
public:
	void SetContactEngine(ContactEngine* aContactEngine);
	static TInt RunMakeNewDirQuery( TDes& aData, TBool aUseDefaults = ETrue, const TDesC* aOverridePrompt = NULL );
	
	
protected:
	// from base class CAknView
	void DoActivateL(const TVwsViewId& aPrevViewId,	TUid aCustomMessageId,const TDesC8& aCustomMessage );
	void DoDeactivate();
	void HandleStatusPaneSizeChange();	
	void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
	
private:
	void SetupStatusPaneL();
	void CleanupStatusPane();
	CExportContactsSelectDirContainer* CreateContainerL();
	
private:	 
	CExportContactsSelectDirContainer* iExportContactsSelectDirContainer;
	ContactEngine*					   iContactEngine;						     //Not owned
};

#endif // EXPORTCONTACTSSELECTDIRCONTAINERVIEW_H
